import os
import rtconfig
from building import *

Import('SDK_LIB')

cwd = GetCurrentDir()

objs = []
list = os.listdir(cwd)

for d in list:
    path = os.path.join(cwd, d)
    if os.path.isfile(os.path.join(path, 'SConscript')):
        objs = objs + SConscript(os.path.join(d, 'SConscript'))
 
path =  [cwd]
path += [cwd + '/app/base']
path += [cwd + '/inc']
       
src = Split('''
app/base/boot_interface/boot_logo.c
''')
#app/base/gui_desktop.c

src += Glob(cwd + '/app/' + '*.c')

group = DefineGroup('emxgui/app', src, depend = ['GUI_USING_EMXGUI'], CPPPATH = path)

Return('group')
